package com.hy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hy.common.Result;
import com.hy.entity.Teacher;

import java.util.List;

public interface SysTeacher {
    //创建老师信息
    Result<Teacher> createTeacher(Teacher teacher);

    //获取所有老师信息
    Result<IPage<Teacher>> getTeacherPage(Integer pageNum, Integer pageSize,String teacherName,Integer minLikes,Integer maxLikes);


    // 根据 ID 获取老师信息
    Result<Teacher> getTeacherById(Long id);

    // 更新老师信息
    Result<Teacher> updateTeacher(Teacher teacher);

    // 根据 ID 删除老师信息
    Result<String> deleteTeacher(Long id);

}
